package book.services;

import book.pojo.Book;
import book.pojo.Page;

import java.util.List;

/**
 * @BelongsProject: JavaWeb
 * @BelongsPackage: book.services
 * @Author: LiYing
 * @CreateTime: 2020-12-19 13:51
 * @Description:
 */
public interface BookService {


    public void addBook(Book book);

    public void deleteBookById(Integer id);

    public void updateBook(Book book);

    public Book queryBookById(Integer id);

    public List<Book> queryBooks();

    Page<Book> page(int pageNo, int pageSize);

    Page<Book> pageByPrice(int pageNo, int pageSize, int min, int max);
}
